<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of AdminActionsLinks
 *
 * @author julien
 */
require_once 'Classes/View/ViewItems/ListItem.php';


class AdminActionsLinks extends ListItem {
    
    private $deleteLink;
    private $editLink;
    
    public function __construct($id) {
        parent::__construct();
        $this->setClass("menu");
        
        $this->deleteLink = new LinkItem($_SERVER['REQUEST_URI'].'delete-'.$id,"Delete");
        $this->editLink = new LinkItem($_SERVER['REQUEST_URI'].'edit-'.$id,"Edit");
        $this->editLink->unsetEndingSpace();
        
        $this->addElement($this->editLink);
        $this->addElement($this->deleteLink);
    }
}

?>
